import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

public class Demo1 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> queue=new LinkedBlockingDeque<>();
        for (int i=0;i<100;i++) {
            queue.put("aaa");
        }
        System.out.println("队列已经满了");
        queue.put("aaa");
        System.out.println("再次尝试");
    }
}
